# encoding : utf-8
# 证书
class Certificate < ActiveRecord::Base
  validates_presence_of :name
  validates_uniqueness_of :name

  validates_numericality_of [:available_months, :recheck_time], only_integer: true
  validates_numericality_of [:initiate_cost, :recheck_cost], greater_than: -1
end
